body {
color: #000000;
background: #ffffcc;
; font-family: 細明體;
; font-size: 10pt;

}
body a:link {
text-decoration: none;
}
body a:visited {
text-decoration: none;
}
body a:active {
text-decoration: none;

}
body a:hover {
color:red;
background: none;
background-color: #FCC;
text-decoration: underline;
}
.ubb_popup_body {
color: #000000;
background: #ffffcc;
; font-family: 細明體;
; font-size: 10pt;

}
.t_outer {
border: 2px solid #CC6600;
border-spacing: 0px;
background: #FFFFFF;
margin-bottom: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.t_inner {
background: #FF9933;
/* color: #FFFFFF; */
/* border: 1px solid #AAA; */
padding: 0px;

}
.t_standard {
border: 2px solid #CC6600;
border-spacing: 0px;
background: #FFFFFF;
padding: 4px;
margin-bottom: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tdheader {
font-family: 標楷體;
font-size: 12pt;
font-weight: normal;
color: #333;
background: #FC6;
padding: 2px;

}
.alt-1 {
background: #FFE6B0;
padding: 2px;
word-break: break-word;
}
.alt-2 {
background: #FFE690;
padding: 2px;

}
.breadcrumbs {
font-size: 1.5rem;
font-weight: normal;
color: #000000;
background: #FFE6B0;
padding: 2px;

}
.navigation {
font-size: 1.5rem;
font-weight: normal;
color: #336699;
background: #FFCC66;
padding: 2px;
border-top: #FFCC66 solid 1px;
text-align: center;

}
.navigation a:link {
text-decoration: none;
}
.navigation a:visited {
text-decoration: none;
}
.navigation a:active {
text-decoration: none;

}
.footer {
font-size: 9pt;
font-weight: normal;
color: #666666;
background: #FFE690;
padding: 2px;

}
.body_col {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 0px;
padding-right: 0px;
}
.lefttdheader {
font-size: 10pt;
font-weight: bold;
color: #666666;
background: #FFCC66;
padding: 2px;
}
.leftalt-1 {
background: #FFE690;
color: #000;
padding: 2px;
}
.leftalt-2 {
background: #FFE6B0;
color: #333333;
padding: 2px;
}
.righttdheader {
font-size: 10pt;
font-weight: bold;
color: #666666;
background: #FFCC66;
padding: 2px;

}
.rightalt-1 {
background: #FFE690;
color: #000;
padding: 2px;

}
.rightalt-2 {
background: #FFE6B0;
color: #333333;
padding: 2px;
}
.left_col {
padding-right: 5px;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 0px;
}
.right_col {
padding-left: 5px;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 0px;

}
.category {
font-family: 標楷體;
font-size: 11pt;
font-weight: normal;
color: #000;
background: #FFE6B0;
padding: 1px;
border: 0px solid #DDDDBB;
}
.newinforum {
background: #FFE690;
color: #333333;
padding: 2px;
}
.forumtitle {
font-family: 標楷體;
font-size:16px;
background: #FFE690;
color: #000000;
padding: 1px;
text-decoration: none;

}
.forumtitle a:hover {
color: red;
background-color: #ffcccc;
text-decoration: underline;
}
.forumdescript {
font-size: 9pt;
font-family: 細明體;

}
.threadtotal {
background: #FFFFB0;
color: #333333;
padding: 2px;
border-bottom: 1px solid #CC9966;
}
.posttotal {
background: #FFFF90;
color: #333333;
padding: 2px;
border-bottom: 1px solid #CC9966;
}
.posttime {
background: #FFFFB0;
color: #333333;
padding: 2px;
border-bottom: 1px solid #CC9966;
}

/* Desktop: elegant ellipsis for long post subjects */
.posttime a {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
.newtotal {
font-size: 8pt;
color: red;
}
.forum_extras {
font-family: 細明體;
font-size: 8pt;
font-weight: normal;
}
.newintopic {
background: #ffe6b0;;
color: #333333;
padding: 2px;

}
.topicicon {
background: #FFE6B0;
color: #333333;
padding: 2px;
}
.topicsubject {
background: #ffe6b0;
color: #333333;
padding: 6px;
}
.topicreplies {
background: #FFE6B0;
color: #333333;
padding: 2px;
}
.topicviews {
background: #ffe6b0;
color: #333333;
padding: 2px;
}
.topictime {
background: #FFE6B0;
color: #333333;
padding: 2px;
}
.alt-newintopic {
background: #ffe690;
color: #333333;
padding: 2px;
}
.alt-topicicon {
background: #ffe690;
color: #333333;
padding: 2px;
}
.alt-topicsubject {
background: #ffe690;
color: #333333;
padding: 6px;
}
.alt-topicreplies {
background: #ffe690;
color: #333333;
padding: 2px;
}
.alt-topicviews {
background: #ffe690;
color: #333333;
padding: 2px;
}
.alt-topictime {
background: #ffe690;
color: #333333;
padding: 2px;
}
.new-newintopic {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.new-topicicon {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.new-topicsubject {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.new-topicreplies {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.new-topicviews {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.new-topictime {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.new-alt-newintopic {
background: #cce690;
color: #333333;
padding: 2px;
}
.new-alt-topicicon {
background: #cce690;
color: #333333;
padding: 2px;
}
.new-alt-topicsubject {
background: #cce690;
color: #333333;
padding: 2px;
}
.new-alt-topicreplies {
background: #cce690;
color: #333333;
padding: 2px;
}
.new-alt-topicviews {
background: #cce690;
color: #333333;
padding: 2px;
}
.new-alt-topictime {
background: #cce690;
color: #333333;
padding: 2px;
}
.inline_selected {
font-family: 標楷體;
font-size: 12pt;
font-weight: normal;
color: #333;
background: #FC6;
padding: 2px;

}
.inline_selector {
background: #cce6b0;
color: #333333;
padding: 2px;
}
.subjecttable {
font-size: 10pt;
font-weight: bold;
color: #000;
background: #ffcc66;
padding: 2px;
}
.author-content {
background: #ffe690;
color: #333333;
padding: 2px;
}
.post-content {
border-left: 1px solid #FF9933;
background: #FFE6B0;
/* color: #333; */
padding: 10px;
word-break: break-word;
}
.post-options {
border-left: 1px solid #FF9933;
background: #FFE690;
color: #333333;
padding: 2px;
}
.post-buttons {
border: 1px solid #FF9933;
border-radius: 5px;
#font-size: 12pt;
font-size: 1.5rem;
color: #357082;
background: #FFCC99;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 2px;
padding-right: 2px;
}
.post-buttons a:link {
text-decoration: none;
}
.post-buttons a:visited {
text-decoration: none;
}
.post-buttons a:active {
text-decoration: none;
}
.post_inner {
display: block;
max-width: 100%;
overflow: auto;
/* white-space:pre */
font-size:13pt;
line-height:1.4
}
.signature {
margin-top: 10px;
margin-bottom: 5px;
}
.pollcolor {
background: #ff0000;
color: #000000;
border: 1px solid #000000;
}
.private_unread {
border-top: 1px solid #FFCC66;
background: #FFCC66;
color: #000;
font-size: 8pt;
padding: 2px;

}
.post_top_link {
border-top: 1px solid #FFCC66;
background: #FFCC66;
color: #000;
font-size: 8pt;
padding: 2px;

}
.markup_panel {
font-size: 10pt;
font-weight: bold;
color: #666666;
background: #EEEECC;
padding: 2px;
border: 1px solid #666666;
}
.markup_panel_normal_button {
background: #EEEECC;
color: #FFFFFF;
border: 1px solid #666666;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 1px;
border-collapse: collapse;
cursor: pointer;
}
.markup_panel_hover_button {
background: #FFFFDD;
color: #FFFFFF;
border: 1px solid #666666;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 1px;
border-collapse: collapse;
cursor: pointer;
}
.markup_panel_down_button {
background: #CCCCAA;
color: #FFFFFF;
border: 1px solid #666666;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 1px;
border-collapse: collapse;
cursor: pointer;
}
.markup_panel_popup {
border: 1px solid #000000;
background: #F9F9F9;
color: #333333;	
padding: 2px;
}
.markup_panel_unselect_text {
background: #FFFFFF;
border: solid 1px #FFFFFF;
width: 90%;
margin: 0px;
padding: 0px;
}
.markup_panel_select_text {
background: #FFCC00;
border: solid 1px #000000;
width: 100%;
margin: 0px;
padding: 0px;
}
.popup_menu {
border-collapse: collapse;
}
.popup_menu_header {
font-size: 10pt;
font-weight: bold;
color: #666666;
background: #EEEECC;
padding: 2px;
border: 1px solid #666666;
}
.popup_menu_content {
background: #E6E6E6;
font-size: 1.2em;
color: #333333;	
border: 1px solid #666666;
padding: 2px;
white-space: nowrap;
}
.popup_menu_highlight {
background: #F9F9F9;
font-size: 1.2em;
color: #333333;	
border: 1px solid #666666;
padding: 0px;
white-space: nowrap;
}
.ubbcode-block {
margin: 5px 2em;
background: #ffeeaa;
border: 1px solid #fc0;
padding: 0px;
border-spacing: 0px;

border-width: 1px;
border-style: dashed;
border-color: #ff0033;
}
.ubbcode-header {
display: block;
font-weight: bold;
padding: 1px;
color: #000;
background: #FE6;
border-bottom: 1px solid red;
border-bottom-style: dashed;
font-size: 8pt;

}
.ubbcode-body {
margin: 4px;
overflow: auto;
font-size: 10pt;
display: block;
}
.bbcodecomment {
color: green;
}
.bbcodedefault {
color: #000000;
}
.bbcodekeyword {
color: maroon;
}
.bbcodestring {
color: goldenrod;
}
.bbcodehtml {
color: dodgerblue;
}
.tab_grippy {
background: #FFFFCC;
border: 1px solid #666666;
border-bottom: 0px;
color: #666666;
}
.tab_grippy_sel {
background: #ffe690;
border: 1px solid #666666;
border-bottom: 0px;
color: #666666;

}
form {
display: inline;
margin-bottom: 0;
padding: 5px;
}
.form-input {
background-color: #ffffff;
color: #000000;
font-size: 10pt;
}
.form-select {
background-color: #ffffff;
color: #000000;
font-size: 10pt;
}
.form-button {
background-color: #dedfdf;
color: #000000;
font-size: 10pt;
}
.date {
color: #0000AA;
font-size: 9pt;
}
.time {
font-size: 9pt;
}
.small {
font-family: 細明體;
font-size: 10pt;
font-weight: normal;

}
.standouttext {
color: #ff0000;
background: none;

}
.adminname {
color: #FF0000;
}
.modname {
color: #FF6600;
}
.globalmodname {
color: #00AAFF;
}
.shout_border {
border: 1px solid #EEEEDD;
margin: 0px;
}
.shout_delete {
font-size: 7pt;
}
.popup_content_header {
width: 502px;
display: block;
font-weight: bold;
padding: 4px;
color: #666666;
background: #EEEECC;
border: 1px solid #AAAAAA;
border-bottom: 1px solid #AAAA11;
font-size: 8pt;
}
.popup_content {
width: 502px;
overflow: auto;
font-size: 10pt;
display: block;
background: white;
border: 1px solid #AAAAAA;
padding: 4px;
}
.search_highlight {
background: #FFFF00;
color: #000000;
}
.email-body {
 background: #FDFBE7;
color: #F0F0F0;
padding: 4px;
border-collapse: collapse;
border: 1px solid #0F0F0F;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.email-header {
background: #0066A7;
color: #F0F0F0;
font-size: 10pt;
padding:4px;
border-bottom: 1px solid #224988;
text-align:center;
}
.email-tdheader {
padding: 4px 6px;
color: #E0E0E0;
background: #2E669A;
border: 1px solid #224988;
border-bottom: 0px;
font-size: 10pt;
}
.email-tdbody {
background: #E9F5F7;
color: #000;
padding: 4px 6px;
border: 1px solid #224988;
font-size: 10pt;
}
.email-footer {
background: #0066A7;
color: #F0F0F0;
font-size: 10pt;
padding:4px;
border-top: 1px solid navy;
text-align:center;
}
code {
  color:#000000;
  background-color: transparent;  
  padding:0px;
}

#content {
  margin-left:20px;
  margin-right:20px;
}

#shout_content {
  font-size:11pt;
}

a {
  color: #3300cc;
}

a:visited {
  color: #660033;
}


a.pageprint {
  padding:0 5pt 0 5pt;
  font-size:1.7rem;
  font-weight: bold;
}

.nopadmar {
   padding: 1px !important;
   margin: 0 !important;
}

table {
    border-spacing: 1px;
    border-collapse: initial;
}

pre {
 font-family: 細明體; margin: 0px;
}


img {
    max-width: 95%;
    height: auto;
    width: auto\9; /* ie8 */
}


.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe[style]  {width: 100% !important;}

.social {
 font-size: 1px;
}
 
/* This gets Facebook to fall into place */
.social {
	vertical-align: middle;
}
 
/* Set an optional width for your button wrappers */
.social span {
	display: inline-block;
	width: 120px;
}
 
/* Adjust the widths individually if you like */
.social .google {
	width: 85px;
}

.social .facebook {
	width: 450px;
}

@media only screen and (max-width: 767px) {
        .mobileHide{
            display: none !important;
        }

        .mobileShow {
            display: block !important;
        }

        /* Mobile category container */
        .mobile-category-container {
            margin-bottom: 20px;
        }

        /* Mobile category header with collapse button */
        .mobile-category-header {
            font-family: 標楷體;
            font-size: 14pt;
            font-weight: bold;
            color: #333;
            background: #FC6;
            padding: 10px 12px;
            margin-bottom: 15px;
            border: 2px solid #CC6600;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .mobile-category-header img {
            width: 20px;
            height: 20px;
            margin-top: 2px;
        }

        /* Mobile forums wrapper */
        .mobile-forums-wrapper {
            display: block;
        }

        /* Mobile forum card layout */
        .forum-card-mobile {
            background: #FFE6B0;
            border: 2px solid #CC6600;
            border-radius: 8px;
            margin-bottom: 15px;
            padding: 12px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .forum-card-mobile .forum-info {
            padding-bottom: 12px;
            margin-bottom: 12px;
            border-bottom: 1px solid #CC6600;
        }

        .forum-card-mobile .forum-lastpost {
            background: #FFE690;
            border-radius: 4px;
            padding: 10px;
        }

        /* Mobile: show full post subject without truncation */
        .forum-card-mobile .forum-lastpost a {
            white-space: normal;
            word-wrap: break-word;
        }

    }
/* ==========================================================================
   Phase 2: Modern Header Styles - Responsive Design
   ========================================================================== */

/* Site Header */
.site-header {
  width: 100%;
  margin-bottom: 10px;
}

.banner-container {
  width: 100%;
}

.banner-background {
  background-color: #BDBDBD;
  background-image: url('/banner/banner_base.gif');
  background-repeat: repeat-x;
  min-height: 43px;
  width: 100%;
  position: relative;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0;
  position: relative;
}

.site-logo {
  padding-left: 9px;
  display: flex;
  align-items: center;
}

.site-logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

.social-links {
  display: flex;
  align-items: center;
  padding: 5px 10px;
}

.social-links a {
  display: block;
  line-height: 0;
}

.social-links img {
  display: block;
  height: auto;
}

/* Social Sharing Section */
.social-sharing {
  float: right;
  margin: 10px 10px 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-sharing .google,
.social-sharing .facebook {
  display: inline-block;
}

/* Promotional Banner */
.promo-banner {
  clear: both;
  text-align: center;
  margin: 0 10px 10px;
}

.promo-link {
  display: block;
  color: #fff;
  padding: 8px 15px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.promo-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.promo-ai {
  background-color: #7D3C98;
  border: solid 1px #663300;
}

/* Responsive Design - Mobile First */
@media only screen and (max-width: 767px) {
  .banner-background {
    min-height: 38px;
  }
  
  .site-logo {
    padding-left: 5px;
  }
  
  .site-logo img {
    max-height: 35px;
    width: auto;
  }
  
  .social-links {
    padding: 3px 5px;
  }
  
  .social-links img {
    max-height: 30px;
    width: auto;
  }
  
  .social-sharing {
    float: none;
    justify-content: center;
    margin: 10px auto;
  }
  
  .promo-link {
    font-size: 16px;
    padding: 10px 15px;
  }
}

@media only screen and (max-width: 480px) {
  .banner-background {
    min-height: 35px;
  }
  
  .site-logo img {
    max-height: 30px;
  }
  
  .social-links img {
    max-height: 25px;
  }
  
  .promo-link {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Tablet and Desktop */
@media only screen and (min-width: 768px) {
  .banner-content {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Phase 2: Typography Modernization
   ========================================================================== */

/* Modern font stack for better readability */
body,
.ubb_popup_body,
.small,
.forumdescript,
.forum_extras,
pre {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
  font-size: 16px !important; /* Minimum 16px for mobile to prevent auto-zoom */
  line-height: 1.6;
}

/* Header fonts */
.tdheader,
.category,
.forumtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif !important;
}

/* Maintain relative sizing for specific elements */
.breadcrumbs,
.navigation {
  font-size: 1.5rem;
}

.post_inner {
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive font sizing */
@media only screen and (max-width: 767px) {
  body,
  .ubb_popup_body,
  .small,
  .post_inner {
    font-size: 16px !important;
  }
  
  .breadcrumbs,
  .navigation {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 480px) {
  .breadcrumbs,
  .navigation {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Enhanced Separators - Better visual distinction between forums and topics
   ========================================================================== */

/* Add visible borders between topic rows */
.topicsubject,
.alt-topicsubject,
.new-topicsubject,
.new-alt-topicsubject {
  border-bottom: 1px solid #CC9966;
}

/* Add borders to other topic cells for consistency */
.topicicon,
.topictime,
.topicreplies,
.topicviews,
.newintopic,
.alt-topicicon,
.alt-topictime,
.alt-topicreplies,
.alt-topicviews,
.alt-newintopic,
.new-topicicon,
.new-topictime,
.new-topicreplies,
.new-topicviews,
.new-newintopic,
.new-alt-topicicon,
.new-alt-topictime,
.new-alt-topicreplies,
.new-alt-topicviews,
.new-alt-newintopic {
  border-bottom: 1px solid #CC9966;
}

/* Forum list items - add bottom border */
.newinforum,
.forumtitle {
  border-bottom: 1px solid #DDAA77;
}

/* Category headers - make more prominent */
.category {
  border-bottom: 2px solid #996633;
  padding: 4px;
}

/* Post content area - better separation */
.post-content {
  border: 1px solid #CC9966;
  border-left: 3px solid #FF9933;
  margin-bottom: 8px;
}

/* Author content area */
.author-content {
  border-bottom: 1px solid #DDAA77;
}

/* ==========================================================================
   Modern Form Styles - Enhanced user profile and settings pages
   ========================================================================== */

/* Form container improvements */
#mycontent {
  padding: 20px !important;
}

/* Modern form inputs */
.form-input,
.form-select,
textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px 12px;
  font-size: 16px;
  border: 2px solid #DDD;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.form-input:focus,
.form-select:focus,
textarea:focus {
  border-color: #4A90E2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input:hover,
.form-select:hover,
textarea:hover {
  border-color: #999;
}

/* Labels */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 12px;
  color: #333;
  font-size: 15px;
}

/* Radio buttons and checkboxes */
.form-radio,
.form-checkbox {
  margin-right: 8px;
  margin-left: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Form buttons - enhanced */
.form-button,
input[type="submit"],
input[type="button"] {
  background: linear-gradient(180deg, #4A90E2 0%, #357ABD 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 12px;
  margin-right: 8px;
}

.form-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(180deg, #357ABD 0%, #2868A8 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.form-button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form sections spacing */
#mycontent br {
  display: block;
  content: "";
  margin-top: 4px;
}

/* Password inputs */
input[type="password"] {
  font-family: monospace;
  letter-spacing: 2px;
}

/* Textarea specific */
textarea {
  resize: vertical;
  min-height: 100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  line-height: 1.5;
}

/* Category headers in forms */
.category {
  background: linear-gradient(180deg, #fcd0a2 0%, #faae65 100%);
  color: white;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
}

/* Form content area */
.alt-1,
.alt-2 {
  padding: 2px;
  /*background: #FAFAFA;*/
  border-radius: 6px;
}

/* Small text */
.small {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Standout text (errors/warnings) */
.standouttext {
  color: #D32F2F;
  font-weight: 600;
  padding: 8px 12px;
  background: #FFEBEE;
  border-radius: 4px;
  display: inline-block;
  margin: 8px 0;
}

/* Success message */
.category .standouttext {
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Preview area */
#preview_area {
  margin-top: 12px;
  padding: 12px;
  background: white;
  border: 2px solid #DDD;
  border-radius: 6px;
}

/* Table in preview */
#preview_area table {
  width: 100%;
  border: none;
}

#preview_area .alt-1 {
  background: white;
  padding: 12px;
}

/* Radio button groups */
input[type="radio"] + label {
  display: inline;
  margin-right: 20px;
  font-weight: normal;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
  #mycontent {
    padding: 12px !important;
  }
  
  .form-input,
  .form-select,
  textarea {
    max-width: 100%;
  }
  
  .form-button,
  input[type="submit"],
  input[type="button"] {
    width: 100%;
    margin-bottom: 8px;
  }
  
  /* Side nav on mobile */
  #mynav {
    width: 100% !important;
    margin-bottom: 12px;
  }
  
  #mycontent {
    width: 100% !important;
  }
}

/* Left navigation modernization */
#mynav {
  background: #F5F5F5;
  padding: 16px;
  border-radius: 6px;
}

#mynav a {
  display: block;
  padding: 10px 12px;
  margin: 4px 0;
  background: white;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

#mynav a:hover {
  background: #E3F2FD;
  border-left-color: #4A90E2;
  transform: translateX(4px);
}

/* Homepage input special styling */
input#Homepage {
  max-width: 450px;
}

/* ICQ, Yahoo, MSN, AIM inputs - smaller width */
input#icq,
input#yahoo,
input#msn,
input#aim {
  max-width: 300px;
}

/* Override for inline checkbox labels */
.form-checkbox + label {
  display: inline;
  margin: 0;
  font-weight: normal;
}

/* Styles for horizontally aligned form groups */
.inline-form-group .form-select {
    width: auto; /* Override width: 100% */
    display: inline-block;
    vertical-align: middle;
}

.inline-form-group label {
    display: inline;
    margin: 0;
    font-weight: normal;
    vertical-align: middle;
}

/* ============================================================================
   GIPHY Picker Modal Styles
   ============================================================================ */

/* Modal overlay */
.giphy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

/* Modal content container */
.giphy-modal-content {
    background-color: #ffffff;
    margin: auto;
    border: 2px solid #CC6600;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Modal header */
.giphy-modal-header {
    background: linear-gradient(180deg, #FF9933 0%, #FF7700 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #CC6600;
}

.giphy-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* Close button */
.giphy-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    transition: all 0.2s;
}

.giphy-close:hover {
    color: #ffcccc;
    transform: scale(1.1);
}

/* Modal body */
.giphy-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    background-color: #ffffcc;
}

/* Search bar */
.giphy-search-bar {
    margin-bottom: 15px;
}

.giphy-search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #CC6600;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 細明體, Arial, sans-serif;
}

.giphy-search-bar input:focus {
    outline: none;
    border-color: #FF7700;
    box-shadow: 0 0 5px rgba(255, 119, 0, 0.3);
}

/* Results grid */
.giphy-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    min-height: 200px;
}

/* Individual GIF item */
.giphy-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
    background-color: #ffffff;
}

.giphy-item:hover {
    border-color: #FF7700;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 119, 0, 0.4);
}

.giphy-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Loading and error states */
.giphy-loading,
.giphy-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.giphy-error {
    color: #cc0000;
}

/* Modal footer */
.giphy-modal-footer {
    padding: 0;
    text-align: center;
    border-top: none;
    background-color: #000000;
    border-radius: 0 0 6px 6px;
    line-height: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .giphy-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .giphy-results {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .giphy-modal-header h3 {
        font-size: 16px;
    }
}

/* Enhanced Pagination Styles */
.pagination-container {
    margin: 10px 0;
    text-align: center;
    clear: both;
}

.pagination-wrapper {
    display: inline-block;
}

.pagination-enhanced {
    border: 1px solid #CC6600;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);
    box-shadow: 0 2px 8px rgba(204, 102, 0, 0.15);
    overflow: hidden;
}

.pagination-enhanced td {
    padding: 0;
    border: none;
    vertical-align: middle;
}

.pagination-info {
    background: linear-gradient(135deg, #FF9933 0%, #FF8800 100%);
    color: #FFFFFF;
    font-weight: bold;
    padding: 8px 16px !important;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-right: 1px solid #CC6600;
}

.pagination-page {
    background: #FFFFFF;
    border-right: 1px solid #E6E6E6;
    transition: all 0.3s ease;
}

.pagination-page:hover {
    background: linear-gradient(135deg, #FFF2E6 0%, #FFE8CC 100%);
}

.pagination-link {
    display: block;
    padding: 8px 12px;
    color: #CC6600;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 0;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #FFB366 0%, #FF9933 100%);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(204, 102, 0, 0.3);
}

.pagination-current {
    background: linear-gradient(135deg, #CC6600 0%, #FF8800 100%);
    border-right: 1px solid #CC6600;
}

.pagination-active {
    display: block;
    padding: 8px 12px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #CC6600 0%, #FF8800 100%);
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        margin: 8px 0;
    }

    .pagination-link,
    .pagination-active {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 32px;
    }

    .pagination-info {
        padding: 6px 12px !important;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .pagination-link,
    .pagination-active {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 28px;
    }

    .pagination-info {
        padding: 4px 8px !important;
        font-size: 10px;
    }
}

