/* ==================== 
   FILE: css/style.css
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1c5e50, #4a6491, #1c5e50);
    color: #fff;
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== 
   HEADER STYLES
   ==================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #ff6b6b;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    color: #ff6b6b;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

nav a:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== 
   HERO SECTION
   ==================== */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    flex: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7b38);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image i {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* ==================== 
   FEATURES SECTION
   ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    color: #4ecdc4;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== 
   STATS SECTION
   ==================== */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    padding: 20px;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .label {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #fff;
}

/* ==================== 
   CTA SECTION
   ==================== */
.cta-section {
    text-align: center;
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.3), rgba(178, 31, 31, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.user-types {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.user-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    width: 250px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-type:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.user-type i {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.user-type:hover i {
    color: #ff6b6b;
    transform: scale(1.1);
}

.user-type h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.user-type p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== 
   AUTH FORMS
   ==================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.auth-form input, .auth-form select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth-form input:focus, .auth-form select:focus {
    outline: 2px solid #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* ==================== 
   DASHBOARD STYLES
   ==================== */
.dashboard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dashboard-section:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.4rem;
}

.dashboard-section h3 i {
    color: #ff6b6b;
}

/* ==================== 
   PROJECTS GRID
   ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #fff;
}

.project-card p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.project-info {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.project-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.constructors-list {
    margin: 15px 0;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

.constructors-list h5 {
    margin-bottom: 10px;
    color: #4ecdc4;
}

.constructors-list ul {
    list-style: none;
}

.constructors-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.constructors-list li:last-child {
    border-bottom: none;
}

.project-actions {
    margin-top: 15px;
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.btn-small {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-small.btn-secondary {
    background: rgba(76, 209, 196, 0.3);
    border: 1px solid rgba(76, 209, 196, 0.5);
}

.btn-small.btn-secondary:hover {
    background: rgba(76, 209, 196, 0.5);
    border-color: rgba(76, 209, 196, 0.8);
}

.btn-chat-order {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-width: 160px;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-chat-order:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-chat-order i {
    font-size: 1.1rem;
    color: white;
}

/* ==================== 
   PROFILE STYLES
   ==================== */
.profile-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.user-icon {
    font-size: 3rem;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #fff;
}

.user-details p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.user-actions {
    text-align: center;
}

/* ==================== 
   ALERTS
   ==================== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.alert.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4ecdc4;
}

/* ==================== 
   FOOTER
   ==================== */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

footer p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== 
   RESPONSIVE DESIGN
   ==================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 15px 20px;
    }
    
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .user-types {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-form {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-section h3 {
        font-size: 1.2rem;
    }
    
    .user-type {
        width: 100%;
        max-width: 300px;
    }
}

/* ==================== 
   NOTIFICHE
   ==================== */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.notification-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.notification-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== 
   NOTIFICHE POPUP
   ==================== */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(78, 205, 196, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    border-left: 4px solid #4ecdc4;
}

.notification-popup.show {
    transform: translateX(0);
}

.notification-popup h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.notification-popup p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== 
   MENU NOTIFICHE
   ==================== */
.notifications-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    display: none;
}

.notifications-menu.show {
    display: block;
}

.notifications-menu h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.notifications-menu-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.notifications-menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notifications-menu-item.unread {
    background: rgba(78, 205, 196, 0.1);
}

.notifications-menu-item h4 {
    color: #4ecdc4;
    margin-bottom: 5px;
    font-size: 1rem;
}

.notifications-menu-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.notifications-menu-item .time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.mark-as-read {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
}

.mark-as-read:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Add this to your existing style.css file */
.btn-small.detail-btn {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    margin-top: 10px;
}

.btn-small.detail-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

/* Make project cards more clickable */
.project-card {
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}