/* Calendar Styles for EquipLog Pro */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=General+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #e30614;
    --secondary-color: #242424;
    --text-color: #242424;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "General Sans", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
}

/* Calendar Container */
.elp-calendar-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* Calendar Header */
.elp-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.elp-calendar-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}

.elp-calendar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

#current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 120px;
    text-align: center;
}

/* Navigation Arrows */
.elp-calendar-nav {
    display: flex;
    gap: 10px;
}

.elp-calendar-nav button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.elp-calendar-nav button:hover {
    background: rgba(227, 6, 20, 0.1);
    transform: scale(1.05);
}

/* Previous Arrow Icon */
.elp-calendar-nav button#prev-month::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('../images/Icons/arrow-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
  
}

/* Next Arrow Icon */
.elp-calendar-nav button#next-month::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('../images/Icons/arrow-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    transform: rotate(180deg);
}

/* Filters Section */
.elp-filters-section {
    background: #fff;
    padding: 25px;
    border: 2px solid var(--border-color);
    margin-bottom: 30px;
    border-radius: 0;
}

.elp-filters-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.elp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.elp-filter-group label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    font-family: "Sora", sans-serif;
}

.elp-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    font-family: "General Sans", sans-serif;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 0;
}

.elp-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 20, 0.1);
}

/* Filter Buttons */
.elp-filter-buttons {
    display: flex;
    gap: 15px;
}

.elp-btn {
    padding: 12px 24px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: "General Sans", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.elp-btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.elp-btn-primary:hover {
    background: #c40511;
    color: #fff;
}

.elp-btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.elp-btn-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Calendar Grid */ 
.elp-calendar-container {
    background: #fff;
    border: 2px solid var(--border-color);
    overflow: hidden;
    border-radius: 0;
}

.elp-calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--light-gray);
    border-bottom: 2px solid var(--border-color);
}

.elp-calendar-day-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    font-family: "Sora", sans-serif;
    border-right: 1px solid var(--border-color);
}

.elp-calendar-day-header:last-child {
    border-right: none;
}

.elp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.elp-calendar-day {
    min-height: 120px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.elp-calendar-day:hover {
    background: rgba(227, 6, 20, 0.05);
}

.elp-calendar-day:last-child {
    border-right: none;
}

.elp-day-number {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 14px;
    font-family: "General Sans", sans-serif;
}

.elp-calendar-day.other-month {
    background: #fafafa;
    color: #ccc;
}

.elp-calendar-day.other-month .elp-day-number {
    color: #ccc;
}

.elp-calendar-day.today {
    background: rgba(227, 6, 20, 0.1);
}

.elp-calendar-day.today .elp-day-number {
    color: var(--primary-color);
    font-weight: 700;
}

/* Submissions */      
.elp-submissions-container {
    margin-top: 5px;
}

.elp-submission-item {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 10px;
    margin-bottom: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    font-family: "General Sans", sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

.elp-submission-item:hover {
    background: #c40511;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(227, 6, 20, 0.3);
}

.elp-submission-item.multiple {
    background: var(--secondary-color);
}

.elp-submission-item.multiple:hover {
    background: #1a1a1a;
}

/* Modal Styles */
.elp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.elp-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.elp-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.elp-modal-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elp-modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 20px;
}

.elp-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elp-modal-close:hover {
    color: var(--primary-color);
}

.elp-modal-body {
    padding: 20px;
}

/* Submission Details */
.elp-submission-detail {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.elp-submission-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.elp-submission-detail strong {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

/* Loading States */
.elp-loading {
    text-align: center;
    padding: 40px;
    color: var(--secondary-color);
}

.elp-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .elp-calendar-view {
        padding: 15px;
    }
    
    .elp-calendar-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .elp-filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .elp-filter-group {
        min-width: auto;
    }
    
    .elp-calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .elp-submission-item {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .elp-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .elp-calendar-header h1 {
        font-size: 24px;
    }
}

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

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

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

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

.elp-hidden {
    display: none;
}

.elp-visible {
    display: block;
} 