/* AIOX Public Pages Styles */

/* Navigation */
.aiox-navigation {
    background: #fff;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aiox-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.aiox-nav-brand h2 {
    margin: 0;
    color: #007cba;
    font-size: 24px;
}

.aiox-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.aiox-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.aiox-nav-menu li.active a,
.aiox-nav-menu li a:hover {
    background: #007cba;
    color: white;
}

.nav-icon {
    font-size: 16px;
}

.aiox-nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
}

.logout-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Dashboard */
.aiox-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: #1e1e1e;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #666;
    font-size: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e1e1e;
    font-size: 20px;
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Subscription Card */
.plan-info {
    text-align: center;
}

.plan-name {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 15px;
}

.plan-details {
    margin-bottom: 20px;
}

.plan-details p {
    margin: 8px 0;
    color: #555;
}

.status-active {
    color: #00a32a;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

/* Credentials Card */
.credential-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.credential-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.credential-item code {
    display: inline-block;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #495057;
    margin-right: 10px;
    word-break: break-all;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.btn-outline:hover {
    background: #007cba;
    color: white;
}

.copy-btn, .toggle-key-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.copy-btn:hover, .toggle-key-btn:hover {
    background: #218838;
}

/* Actions Card */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Profile Form */
.aiox-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-form {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    color: #1e1e1e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* API Documentation */
.aiox-api-docs {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.docs-header {
    text-align: center;
    margin-bottom: 50px;
}

.docs-header h1 {
    color: #1e1e1e;
    margin-bottom: 10px;
}

.docs-header p {
    color: #666;
    font-size: 18px;
}

.docs-content {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.docs-section {
    margin-bottom: 50px;
}

.docs-section h2 {
    color: #1e1e1e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.docs-section h3 {
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
}

.docs-section h4 {
    color: #6c757d;
    margin-top: 20px;
    margin-bottom: 10px;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #495057;
    overflow-x: auto;
    margin: 15px 0;
    display: block;
    white-space: pre-wrap;
}

.endpoint {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.endpoint h3 {
    color: #007cba;
    margin-top: 0;
}

/* Notices */
.aiox-notice {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.aiox-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aiox-nav-container {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    
    .aiox-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .dashboard-card,
    .profile-form,
    .docs-content {
        padding: 20px;
    }
}
