/**
 * Domain Manager Styles
 * Styles for domain management interface
 */

/* Domain Actions */
.domain-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.domain-actions .btn-link {
    background: none;
    border: none;
    color: #cc9933;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s;
}

.domain-actions .btn-link:hover {
    color: #ffcc44;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-expired {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.status-pending_transfer {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

/* Expiry Warning */
.expiry-warning {
    display: block;
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Auto-renewal Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #cc9933;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: #cc9933;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

/* DNS Manager */
.dns-manager {
    color: #e0e0e0;
}

.dns-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nameservers {
    color: #999;
    font-size: 0.875rem;
}

.dns-table {
    width: 100%;
    border-collapse: collapse;
}

.dns-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #cc9933;
    font-weight: 600;
}

.dns-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.record-type {
    background: rgba(204, 153, 51, 0.2);
    color: #cc9933;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.875rem;
}

.record-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    color: #aaa;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

/* Transfer Form */
.transfer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #cc9933;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #cc9933;
}

.tab-content {
    padding: 20px 0;
}

.tab-content.hidden {
    display: none;
}

.auth-code-box {
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-code-box code {
    background: #000;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #cc9933;
    flex: 1;
}

/* Renewal Form */
.renewal-form {
    padding: 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cc9933;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #cc9933;
    background: rgba(255, 255, 255, 0.08);
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 10001;
    animation: slideIn 0.3s;
    max-width: 400px;
}

.notification-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #e53935);
}

.notification-info {
    background: linear-gradient(135deg, #2196f3, #1e88e5);
}

.notification.fade-out {
    animation: fadeOut 0.3s;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #cc9933, #b8862e);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffcc44, #cc9933);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .dns-table {
        font-size: 0.875rem;
    }
    
    .dns-table th,
    .dns-table td {
        padding: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .domain-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}