/* Glass Intra System - Main Stylesheet */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Sidebar styling */
.sidebar {
    background-color: var(--primary-color);
    color: white;
    min-height: 100vh;
    position: fixed;
    width: 250px;
    transition: all 0.3s;
}

.sidebar .logo {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main content area */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

/* For mobile view */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.active {
        margin-left: 250px;
    }
}

/* Card styling */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Table styling */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Status badges */
.badge-quote-sent {
    background-color: var(--warning-color);
    color: white;
}

.badge-confirmed {
    background-color: var(--success-color);
    color: white;
}

.badge-cancelled {
    background-color: var(--danger-color);
    color: white;
}

.badge-in-production {
    background-color: var(--secondary-color);
    color: white;
}

.badge-ready {
    background-color: var(--primary-color);
    color: white;
}

/* Form styling */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Button styling */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Calendar styling */
.calendar-day {
    height: 120px;
    border: 1px solid #ddd;
    padding: 5px;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-event {
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.production {
    background-color: #3498db;
    color: white;
}

.calendar-event.shipping {
    background-color: #2ecc71;
    color: white;
}

.calendar-event.measurement {
    background-color: #f39c12;
    color: white;
}

.calendar-event.installation {
    background-color: #9b59b6;
    color: white;
}

.calendar-event.other {
    background-color: #95a5a6;
    color: white;
}

/* Dashboard stats */
.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #777;
}

/* File attachment area */
.attachment-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.attachment-area:hover {
    border-color: var(--secondary-color);
}

.attachment-list {
    list-style: none;
    padding: 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
}

.attachment-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
