/* Royal Name Registry Portal - Royal Theme CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #d4af37;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(45deg, #000000, #2c2c2c);
    border-bottom: 3px solid #d4af37;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

.logo:hover {
    color: #ffd700;
    text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.6);
}

/* Navigation Styles */
nav {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px 0;
    border-top: 1px solid #d4af37;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}

.nav-menu li a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000000;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

/* Main Content */
.main-content {
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Royal Welcome Section */
.royal-welcome {
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border: 3px solid #d4af37;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.royal-welcome h1 {
    font-size: 3em;
    color: #d4af37;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.royal-welcome p {
    font-size: 1.3em;
    color: #ffd700;
    margin-bottom: 30px;
    font-style: italic;
}

/* Special Overview Section */
.overview-section {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000000;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.5);
}

.overview-section h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.overview-section a {
    display: inline-block;
    background: #000000;
    color: #d4af37;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.overview-section a:hover {
    background: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000000;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background: linear-gradient(45deg, #ffd700, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #000000;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #d4af37;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #d4af37;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Tables */
.royal-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.royal-table th,
.royal-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #d4af37;
}

.royal-table th {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
}

.royal-table tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

.royal-table tr:nth-child(even) {
    background: rgba(212, 175, 55, 0.05);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-edit {
    background: #4CAF50;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-delete {
    background: #f44336;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-edit:hover {
    background: #45a049;
}

.btn-delete:hover {
    background: #da190b;
}

/* Messages */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: bold;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

.message.info {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    color: #d4af37;
}

/* Footer */
footer {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    border-top: 3px solid #d4af37;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    color: #d4af37;
    font-size: 1.1em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo {
        font-size: 2em;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .nav-menu li a {
        padding: 12px 25px;
        width: 200px;
        text-align: center;
    }
    
    .royal-welcome h1 {
        font-size: 2.2em;
    }
    
    .royal-welcome p {
        font-size: 1.1em;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .royal-table {
        font-size: 0.9em;
    }
    
    .royal-table th,
    .royal-table td {
        padding: 10px 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        margin: 5px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8em;
    }
    
    .royal-welcome h1 {
        font-size: 1.8em;
    }
    
    .royal-welcome {
        padding: 25px;
    }
    
    .overview-section {
        padding: 20px;
    }
    
    .overview-section h2 {
        font-size: 1.8em;
    }
    
    .royal-table {
        font-size: 0.8em;
    }
    
    .royal-table th,
    .royal-table td {
        padding: 8px 5px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content {
    animation: fadeIn 0.6s ease-out;
}

/* Royal Crown Icon (CSS) */
.crown-icon::before {
    content: "♔";
    font-size: 1.5em;
    color: #d4af37;
    margin-right: 10px;
}
