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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.form-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    position: relative;
}

.header-content {
    margin-bottom: 15px;
}

.form-header i.fa-palette {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.form-header h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: #718096;
    font-size: 16px;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Main Content */
.form-main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

/* Card */
.card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.card h2 {
    color: #2d3748;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i {
    color: #667eea;
}

.instruction {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 14px;
    background: #edf2f7;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Meeting Details */
.meeting-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.meeting-details p {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

.meeting-details strong {
    color: #2d3748;
}

/* Dates Container */
.dates-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.date-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.date-item.selected {
    border-color: #48bb78;
    background: #f0fff4;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.date-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.date-text {
    flex: 1;
}

.date-day {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: block;
}

.date-time {
    font-size: 14px;
    color: #718096;
    display: block;
    margin-top: 2px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Agenda Section */
.agenda-section {
    background: #fff5f5;
    border: 2px solid #fc8181;
}

.agenda-section h2 {
    color: #c53030;
}

.agenda-section h2 i {
    color: #fc8181;
}

.agenda-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.add-agenda-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.add-agenda-item h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-agenda-item h3 i {
    color: #667eea;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 12px;
}

/* View Agenda */
.view-agenda {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.view-agenda h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-agenda h3 i {
    color: #667eea;
}

.agenda-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.agenda-items-container .loading {
    text-align: center;
    color: #718096;
    padding: 20px;
}

.agenda-items-container .no-items {
    text-align: center;
    color: #718096;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.agenda-section-group {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.agenda-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.agenda-item:last-child {
    margin-bottom: 0;
}

.agenda-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.agenda-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.agenda-item-submitter {
    font-size: 13px;
    color: #718096;
}

.agenda-item-content {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.agenda-item-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #edf2f7;
    border-radius: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.agenda-item-attachment:hover {
    background: #e2e8f0;
    transform: translateX(3px);
}

.agenda-item-time {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 8px;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-content i {
    font-size: 64px;
    color: #48bb78;
    margin-bottom: 20px;
}

.success-content h3 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 12px;
}

.success-content p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.form-footer {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #718096;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .form-header {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 22px;
    }

    .form-main {
        padding: 20px;
    }

    .card {
        padding: 20px;
    }

    .card h2 {
        font-size: 18px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .form-actions {
        flex-direction: column;
    }

    .agenda-actions {
        flex-direction: column;
    }

    .agenda-item-header {
        flex-direction: column;
    }

    .success-content {
        padding: 25px;
    }

    .success-content i {
        font-size: 48px;
    }

    .success-content h3 {
        font-size: 20px;
    }

    .success-actions {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Meeting Management Styles */
.header-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.dates-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.date-input-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.date-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    flex: 2;
}

.time-input {
    flex: 1;
}

.btn-remove {
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #f56565;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Meeting Cards */
.meetings-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meeting-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.meeting-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.meeting-card-header h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meeting-card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: #edf2f7;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #667eea;
    transform: translateY(-2px);
}

.meeting-card-body {
    margin-bottom: 15px;
}

.meeting-card-body p {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

.meeting-card-body strong {
    color: #2d3748;
}

.meeting-notes {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    font-style: italic;
    margin-top: 10px;
}

.meeting-card-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-info {
    background: #bee3f8;
    color: #2c5282;
}

.badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.badge-warning {
    background: #fefcbf;
    color: #744210;
}

/* Responsive for meeting management */
@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column;
    }

    .date-input-row {
        flex-direction: column;
    }

    .date-input,
    .time-input {
        flex: 1;
    }

    .meeting-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .meeting-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
