/* ============================================
   BASE STYLES - Shared across entire application
   ============================================ */

/* Reset & Base Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

/* Common Button Styles */
button {
    font-family: inherit;
}

button:focus {
    outline: none;
}

/* Common Input Styles */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
    font-family: inherit;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6e7681;
}

/* Common Card Styles */
.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    border-color: #6e7681;
    transform: translateY(-2px);
}

/* Common Button Styles */
.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.btn-secondary:hover {
    background: #21262d;
    border-color: #6e7681;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success.copied {
    background: #10b981;
    border-color: #10b981;
}

/* Common Link Styles */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Common Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
}

/* Common Error Message */
.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fc8181;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Success Message */
.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #30363d;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Common Divider */
.divider {
    width: 1px;
    height: 32px;
    background: #30363d;
    margin: 0 8px;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Base */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .divider {
        display: none;
    }
}