/* Waste Management Frontend CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    min-height: 100vh;
    color: #333;
}

.wmf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Form Styles */
.wmf-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4CAF50, #81C784);
}

.wmf-login-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.wmf-logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.wmf-login-form h2 {
    color: #4CAF50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.wmf-form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.wmf-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wmf-form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.wmf-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wmf-btn:hover {
    background: linear-gradient(135deg, #45a049, #5cb85c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.wmf-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dashboard Styles */
.wmf-dashboard {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

.wmf-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wmf-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.wmf-logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wmf-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.wmf-nav {
    background: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.wmf-nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.wmf-nav-item {
    flex: 1;
}

.wmf-nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.wmf-nav-link:hover,
.wmf-nav-link.active {
    color: #4CAF50;
    background: white;
    border-bottom-color: #4CAF50;
}

.wmf-content {
    padding: 30px;
}

.wmf-section {
    display: none;
}

.wmf-section.active {
    display: block;
}

/* Stats Cards */
.wmf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wmf-stat-card {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

.wmf-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wmf-stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Forms */
.wmf-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.wmf-form h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 20px;
}

.wmf-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.wmf-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.wmf-form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.wmf-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.wmf-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Tables */
.wmf-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.wmf-table th {
    background: #4CAF50;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.wmf-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.wmf-table tr:hover {
    background: #f8f9fa;
}

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

/* Action Buttons */
.wmf-btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    margin-right: 5px;
}

.wmf-btn-danger {
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wmf-btn-danger:hover {
    background: #d32f2f;
}

.wmf-btn-success {
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wmf-btn-success:hover {
    background: #45a049;
}

.wmf-btn-info {
    background: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wmf-btn-info:hover {
    background: #1976D2;
}

/* Map Container */
.wmf-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Alerts */
.wmf-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.wmf-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wmf-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wmf-alert-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Loading Spinner */
.wmf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: wmf-spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .wmf-container {
        padding: 10px;
    }
    
    .wmf-login-form {
        padding: 30px 20px;
    }
    
    .wmf-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .wmf-nav-list {
        flex-direction: column;
    }
    
    .wmf-nav-link {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .wmf-nav-link:hover,
    .wmf-nav-link.active {
        border-right-color: #4CAF50;
        border-bottom-color: transparent;
    }
    
    .wmf-content {
        padding: 20px;
    }
    
    .wmf-stats {
        grid-template-columns: 1fr;
    }
    
    .wmf-form-row {
        grid-template-columns: 1fr;
    }
    
    .wmf-table-container {
        overflow-x: auto;
    }
    
    .wmf-table {
        min-width: 600px;
    }
}

/* Hide elements by default */
.wmf-hidden {
    display: none !important;
}

/* Show elements when needed */
.wmf-show {
    display: block !important;
}

/* Utility Classes */
.wmf-text-center {
    text-align: center;
}

.wmf-text-right {
    text-align: right;
}

.wmf-mb-20 {
    margin-bottom: 20px;
}

.wmf-mt-20 {
    margin-top: 20px;
}

.wmf-p-20 {
    padding: 20px;
}

/* PDF Generation Styles */
.wmf-pdf-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.wmf-pdf-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 20px;
}

.wmf-pdf-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.wmf-pdf-title {
    color: #4CAF50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wmf-pdf-subtitle {
    color: #666;
    font-size: 16px;
}

.wmf-pdf-section {
    margin-bottom: 25px;
}

.wmf-pdf-section h3 {
    color: #4CAF50;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.wmf-pdf-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.wmf-pdf-field {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.wmf-pdf-label {
    font-weight: 600;
    color: #333;
}

.wmf-pdf-value {
    color: #666;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }
    
    .wmf-dashboard,
    .wmf-header,
    .wmf-nav,
    .wmf-btn {
        display: none !important;
    }
    
    .wmf-pdf-content {
        box-shadow: none !important;
        border: none !important;
    }
}

