/* Young Platform Inspired CSS for Il Carrubo */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: var(--accent-color-dark) !important;
    font-weight: 600;
}

:root{
    --accent-color: #005e5d;
    --accent-color-dark: #004b4a;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --input-bg: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}
body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Main Container - Two Column Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Left Content Area */
.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

/* Header with Logo and Login Link */
.auth-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.auth-logo {
    height: 36px;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.auth-nav-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
}

.auth-nav-link a:hover {
    text-decoration: underline;
}

/* Main Form Container */
.auth-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 48px;
    width: 100%;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-header p {
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    width: 100%;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

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

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    font-family: 'Figtree', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    background: #f8f9fa;
    transition: all 0,2s ease;
    color: #495057;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Primary Button */
.auth-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.auth-button.primary {
    background: var(--accent-color);
    color: white;
}

.auth-button.primary:hover {
    background: var(--accent-color-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 217, 126, 0.3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.auth-divider span {
    padding: 0 16px;
}

/* Social Authentication */
.social-auth {
    width: 100%;
    margin-bottom: 32px;
}

.social-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: white;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.social-button:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

button{
    font-family:'Figtree', sans-serif;
    font-weight: bolder;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.social-button.google {
    color: #495057;
}

.social-button.google:hover {
    background: #fef7f7;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.social-icon {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 12px;
}

.social-icon:hover {
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-icon img {
    width: 20px;
    height: 20px;
    filter: grayscale(1);
    transition: filter 0.2s ease;
}

.social-icon:hover img {
    filter: grayscale(0);
}

/* Footer Link */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    width: 100%;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Right Image Area */
.auth-sidebar {
    flex: 1;
    /* background: #005e5d; */
    background-image: url('../images/NOVAGLIE-drone-1-1200x1000.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 30%;
    padding: 48px;
    min-height: 100vh;
}

.sidebar-content {
    text-align: center;
    color: white;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.sidebar-header {
    margin-bottom: 48px;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-icon {
    font-size: 48px;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-main h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.sidebar-main p {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
}

/* Decorative Card */
.decorative-card {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.decorative-leaves {
    position: absolute;
    bottom: 20%;
    left: 15%;
    font-size: 48px;
    opacity: 0.6;
    transform: rotate(-15deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Bottom Copyright */
.auth-copyright {
    display: none;
    padding: 24px 32px;
    background: white;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
}

/* Support Icon */
.support-icon {
    position: fixed;
    top: 24px;
    right: 120px;
    z-index: 100;
    color: #6c757d;
    font-size: 24px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.support-icon:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.05);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    min-width: 60px;
    text-align: center;
}

.language-selector:hover {
    border-color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-sidebar {
        min-height: 40vh;
        padding: 32px;
    }
    
    .brand-title {
        font-size: 28px;
    }
    
    .sidebar-main h2 {
        font-size: 24px;
    }
    
    .decorative-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-header-nav {
        padding: 16px 20px;
    }
    
    .auth-form-container {
        padding: 0 20px;
    }
    
    .auth-sidebar {
        min-height: 30vh;
        padding: 24px 20px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-icon {
        display: none;
    }
    
    .language-selector {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .auth-header-nav {
        padding: 12px 16px;
    }
    
    .auth-form-container {
        padding: 0 16px;
    }
    
    .auth-sidebar {
        padding: 20px 16px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .sidebar-main h2 {
        font-size: 20px;
    }
    
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .social-icon {
        padding: 8px;
    }
}

/* Loading States */
.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-group input:invalid {
}

.form-group input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* HOME/DASHBOARD STYLES */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: white;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.dashboard-user-info {
    display: flex;
    flex-direction: column;
}

.dashboard-user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.dashboard-user-email {
    font-size: 12px;
    color: var(--text-light);
}

.dashboard-nav {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.nav-item {
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

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

.dashboard-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.card-content {
    color: var(--text-light);
    line-height: 1.5;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
    color: white;
}

.table-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--input-bg);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.table td {
    color: var(--text-light);
    font-size: 14px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: var(--input-bg);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.quick-action:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .dashboard-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dashboard-nav .nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .table-container {
        overflow-x: auto;
    }
}
