/* Main CSS - Modern SaaS Design System */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1F2937; /* Primary text */
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Modern SaaS Style */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500; /* Medium weight for titles */
    line-height: 1.3;
    color: #1F2937; /* Dark gray primary text */
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p {
    color: #6B7280; /* Medium gray secondary text */
    line-height: 1.6;
}

/* Small text and meta info */
small, .text-sm {
    font-size: 12px;
    color: #9CA3AF; /* Muted text */
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Modern SaaS Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 12px; /* Rounded corners like design inspiration */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease; /* Smooth animations */
    text-decoration: none;
    outline: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.btn:hover {
    /* Removed lift effect, keeping subtle shadow enhancement */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); /* Blue focus ring */
}

.btn-primary {
    background-color: #2563EB; /* Deep blue from design system */
    color: #FFFFFF;
    border-color: #2563EB;
}

.btn-primary:hover {
    background-color: #1D4ED8; /* Darker blue on hover */
    border-color: #1D4ED8;
}

.btn-primary:disabled {
    background-color: #9CA3AF;
    border-color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #374151;
    border-color: #E5E7EB; /* Light gray border */
}

.btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
    color: #1F2937;
}

/* Modern Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151; /* Dark gray for labels */
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB; /* Light gray border */
    border-radius: 12px; /* Rounded corners */
    font-size: 14px;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2563EB; /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); /* Blue glow */
    /* Removed lift effect */
}

input:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: #D1D5DB; /* Darker border on hover */
}

/* Risk Override Modal Styles */
.risk-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #F8FAFC;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.risk-option:hover {
    background-color: #F1F5F9;
    border-color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.risk-option:active {
    transform: translateY(0);
}

.risk-option .risk-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
}

.risk-option .risk-info {
    flex: 1;
}

.risk-option .risk-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.risk-option .risk-info small {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.4;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-content p {
    margin-top: 16px;
    color: #666666;
    font-size: 14px;
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error and Success Messages */
.error-message,
.success-message,
.info-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.info-message {
    background-color: #f0f9ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Modern Card Components */
.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.card:hover {
    /* Removed hover lift and blue border effects */
}

.card-header {
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6B7280;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Modern Tags/Badges */
.tag, .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-feature, .badge-feature {
    background-color: #DBEAFE; /* Light Blue */
    color: #1D4ED8; /* Dark Blue */
}

.tag-uxr, .badge-uxr {
    background-color: #FEF3C7; /* Light Yellow */
    color: #92400E; /* Dark Yellow */
}

.tag-component, .badge-component {
    background-color: #F3F4F6; /* Light Gray */
    color: #374151; /* Dark Gray */
}

.tag-library, .badge-library {
    background-color: #D1FAE5; /* Light Green */
    color: #065F46; /* Dark Green */
}

/* Progress Bars */
.progress-bar-modern {
    width: 100%;
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill-modern {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-blue { background-color: #3B82F6; }
.progress-yellow { background-color: #FACC15; }
.progress-green { background-color: #10B981; }

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.nav-tab {
    padding: 8px 16px;
    border-radius: 20px; /* Pill shape */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav-tab.active {
    background-color: #FFFFFF;
    color: #1F2937;
    border-color: #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-tab:not(.active) {
    background-color: #F3F4F6;
    color: #6B7280;
}

.nav-tab:hover:not(.active) {
    background-color: #E5E7EB;
    color: #374151;
}

/* Avatar Component */
.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #6B7280;
}

/* Additional Button Styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-outline {
    background-color: transparent;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.btn-outline:hover {
    background-color: #F9FAFB;
    color: #374151;
    border-color: #D1D5DB;
}

/* Modern Micro-interactions */
.card:hover .progress-fill-modern {
    animation: progress-shimmer 1.5s ease-in-out;
}

@keyframes progress-shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Button press effect */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Card selection glow */
.card.selected {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Smooth focus transitions */
input:focus, textarea:focus, button:focus {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    
    .card {
        padding: 12px 16px;
    }
    
    .card-title {
        font-size: 15px;
    }
} 