/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* Container */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.logo {
    font-size: 3em;
    margin-bottom: 10px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 2.5em;
    font-weight: 300;
}

.version {
    color: #667eea;
    font-size: 0.6em;
    font-weight: 400;
    margin-left: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    margin-bottom: 10px;
}


/* Main content */
.main-content {
    margin: 15px 0;
}

/* Server Status section */
.server-status {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.status-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.status-item:last-of-type {
    margin-bottom: 10px;
}

.utc-time {
    font-family: 'Monaco', 'Consolas', monospace;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #cce7ff;
    font-weight: bold;
    color: #0066cc;
    font-size: 1.1em;
}

.epp-time {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
}

.status-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.status-note em {
    color: #856404;
    font-style: normal;
    font-size: 0.9em;
}

/* API Info sections */
.api-info, .rest-api-info, .admin-info, .authcode-info {
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 0;
}

.api-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.rest-api-info {
    background: #d1ecf1;
    border: 1px solid #b6d4da;
}

.admin-info {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

.authcode-info {
    background: #dfe7ff;
    border: 1px solid #b8ceff;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.authcode-info strong {
    color: #4a5fbf;
}

.api-info div {
    margin-bottom: 8px;
}

.api-info div:last-child {
    margin-bottom: 0;
}

.api-info strong {
    color: #856404;
}

.api-info code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.api-info a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.api-info a:hover {
    opacity: 0.7;
}

.api-info a code {
    cursor: pointer;
}

.method-badge {
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    background: #fd7e14;
}

.method-badge.get {
    background: #28a745;
}

/* REST API specific styles */
.api-endpoints {
    margin: 15px 0;
}

.endpoint {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.endpoint-desc {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

.api-note {
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.api-note em {
    color: #856404;
    font-style: normal;
    font-size: 0.9em;
}

/* Section headings */
h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 600;
}

/* Section headings with distinct colors */
.api-info h3 {
    color: #856404;
}

.rest-api-info h3 {
    color: #0c5460;
}

.admin-info h3 {
    color: #721c24;
}

.authcode-info h3 {
    color: #4a5fbf;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.authcode-info div {
    margin-bottom: 3px;
    font-size: 0.95em;
}

.authcode-info .endpoint-item {
    margin-bottom: 8px;
}

.authcode-info .endpoint-desc {
    font-size: 0.85em;
    color: #6b7fbf;
}

/* All links and strong text use EPP Protocol API color scheme */
.api-info strong, .rest-api-info strong, .admin-info strong, .authcode-info strong {
    color: #3f3fb8;
}

.api-info code, .rest-api-info code, .admin-info code, .authcode-info code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.api-info a, .rest-api-info a, .admin-info a, .authcode-info a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.api-info a:hover, .rest-api-info a:hover, .admin-info a:hover, .authcode-info a:hover {
    opacity: 0.7;
}

.api-info a code, .rest-api-info a code, .admin-info a code, .authcode-info a code {
    cursor: pointer;
}

.endpoint-item {
    margin-bottom: 15px;
}


/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .logo {
        font-size: 2em;
    }
}
