/* =========================================
   Global Variables & Base Styles
   ========================================= */
:root {
    --bg-color: #F0E6FF;
    --surface-color: #FFFFFF;
    --primary-color: #9146FF;
    --primary-hover: #772CE8;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #D2C4FF;
    --success-color: #669933;
    --danger-color: #CC0000;
    --link-color: #5C16C5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    font-size: 12px;
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 800px;
    margin: 20px auto;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    padding: 10px;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    margin-bottom: 10px;
    color: var(--link-color);
}

h1 {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

h2 {
    font-size: 18px;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 3px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-highlight {
    color: var(--primary-color);
}

.font-bold {
    font-weight: bold;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #A970FF 0%, #9146FF 100%);
    padding: 10px;
    border: 1px solid #5C16C5;
    margin-bottom: 15px;
    color: white;
}

.site-header a {
    color: white;
    text-decoration: none;
}

.site-header .logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 0px #000;
}

.site-header nav {
    display: flex;
    align-items: center;
}

.site-header nav span {
    margin-right: 15px;
}

.nav-btn-outline {
    margin-left: 1rem;
    background: transparent !important;
    border: 1px solid var(--primary-color) !important;
}

.nav-btn-logout {
    margin-left: 0.5rem;
}

/* =========================================
   Cards & Layout Components
   ========================================= */
.card {
    background-color: #F9F9F9;
    border: 1px solid #CCCCCC;
    padding: 15px;
    margin-bottom: 15px;
}

.card.highlight-card {
    border-top: 4px solid var(--primary-color);
    background-color: #F8F5FF;
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
}

.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.empty-state {
    color: var(--text-muted);
}

.empty-state-italic {
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    background: linear-gradient(to bottom, #A970FF 0%, #9146FF 100%);
    color: white !important;
    padding: 5px 10px;
    border: 1px solid #772CE8;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(to bottom, #9146FF 0%, #772CE8 100%);
}

.btn-sm {
    padding: 2px 5px;
    font-size: 11px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-full {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

.btn-danger {
    background: linear-gradient(to bottom, #FF6666 0%, #CC0000 100%);
    border-color: #990000;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #CC0000 0%, #990000 100%);
}

.btn-danger-light {
    background-color: #FDE6E6 !important;
    border: 1px solid #CC0000 !important;
    color: #990000 !important;
    background-image: none !important;
}

.btn-success {
    background: linear-gradient(to bottom, #99CC66 0%, #669933 100%);
    border-color: #336600;
}

.btn-success:hover {
    background: linear-gradient(to bottom, #669933 0%, #336600 100%);
}

.btn-secondary {
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
}

.btn-cancel {
    background-color: #EEEEEE !important;
    background-image: none !important;
    border: 1px solid #CCCCCC !important;
    color: #333333 !important;
}

/* =========================================
   Forms
   ========================================= */
.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 4px;
    border: 1px solid #7F9DB9;
    /* Classic Windows IE style border */
    background-color: #FFFFFF;
    color: #000000;
    font-family: Verdana, sans-serif;
    font-size: 12px;
}

.form-hint {
    color: var(--text-muted);
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.form-actions {
    margin-top: 15px;
}

/* =========================================
   Tables & Badges
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid #CCCCCC;
}

th,
td {
    padding: 5px;
    text-align: left;
    border: 1px solid #CCCCCC;
}

th {
    background-color: #E5E5E5;
    font-weight: bold;
}

/* Tables for Layout (like the hero features) */
table.layout-table {
    border: none;
    margin-top: 0;
}

table.layout-table td {
    border: none;
    padding: 10px;
}

.feature-box {
    border: 1px dotted var(--border-color);
    background-color: #FFFFFF;
    padding: 10px;
}

.badge {
    padding: 2px 5px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #000;
}

.badge-pending {
    background: #FFCC00;
    color: #000;
}

.badge-approved {
    background: #99CC00;
    color: #000;
}

.badge-rejected {
    background: #FF6666;
    color: #000;
}

/* =========================================
   Alerts & Code Snippets
   ========================================= */
.code-snippet {
    background-color: #F8F5FF;
    border: 1px dashed #9146FF;
    padding: 10px;
    font-family: "Courier New", Courier, monospace;
    color: #333;
    overflow-x: auto;
    margin-top: 10px;
    font-size: 12px;
}

.snippet-hint {
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.alert {
    padding: 10px;
    border: 1px solid #000;
    margin-bottom: 15px;
    font-weight: bold;
}

.alert-success {
    background: #E6F2D9;
    border-color: #669933;
    color: #336600;
}

.alert-error {
    background: #FDE6E6;
    border-color: #CC0000;
    color: #990000;
}

/* =========================================
   Page Specifics
   ========================================= */
/* Hero Section (Index) */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: "Gabarito", sans-serif;
    font-weight: 200;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: left;
    border-bottom: none;
}

.hero-title span {
    font-weight: 900;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 20px 0;
    text-align: left;
    font-weight: bold;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.hero-mascot {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.mascot-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    filter: drop-shadow(0 4px 8px rgba(92, 22, 197, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.features-title {
    text-align: center;
    border-bottom: none;
}

.feature-step {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 14px;
}

.feature-desc {
    color: var(--text-color);
}

/* Webring Directory (Ring) */
.ring-header {
    text-align: center;
    margin-bottom: 20px;
}

.ring-title-prefix {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: normal;
}

.ring-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.member-list {
    list-style: none;
    padding: 0;
}

.member-item {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-color);
}

.member-link {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: bold;
    font-size: 14px;
}

/* Manage Webring */
.back-link {
    color: var(--link-color);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
}

.muted-text-small {
    font-size: 11px;
    color: var(--text-muted);
}