/* Eddy - Shared Styles */
/* Color scheme and base styling used across all Eddy interfaces */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #585858;
    min-height: 100vh;
}

/* Color Variables (also defined in Tailwind config) */
:root {
    --eddy-primary: #585858;
    --eddy-green: #849157;
    --eddy-blue: #5b86a9;
    --eddy-orange: #fea400;
    --eddy-light-gray: #f5f5f5;
}

/* Container Styles */
.eddy-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

/* Header Styles */
.eddy-header {
    background: var(--eddy-blue);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eddy-logo {
    height: 80px;
    width: auto;
}

.eddy-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 1rem;
}

.eddy-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Navigation Styles */
.eddy-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.eddy-nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.eddy-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Content Area */
.eddy-content {
    flex: 1;
    padding: 20px;
    background: var(--eddy-light-gray);
    overflow-y: auto;
}

/* Card Styles */
.eddy-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.eddy-card-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.eddy-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--eddy-primary);
    margin: 0;
}

/* Button Styles */
.eddy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: var(--eddy-blue);
    color: white;
}

.eddy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.eddy-btn-primary {
    background: var(--eddy-blue);
    color: white;
}

.eddy-btn-primary:hover {
    background: var(--eddy-primary);
}

.eddy-btn-success {
    background: var(--eddy-green);
    color: white;
}

.eddy-btn-success:hover {
    background: #6b7548;
}

.eddy-btn-warning {
    background: var(--eddy-orange);
    color: white;
}

.eddy-btn-warning:hover {
    background: #e09300;
}

.eddy-btn-danger {
    background: #dc3545;
    color: white;
}

.eddy-btn-danger:hover {
    background: #c82333;
}

.eddy-btn-outline {
    background: transparent;
    border: 2px solid var(--eddy-blue);
    color: var(--eddy-blue);
}

.eddy-btn-outline:hover {
    background: var(--eddy-blue);
    color: white;
}

.eddy-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Form Styles */
.eddy-form-group {
    margin-bottom: 16px;
}

.eddy-label {
    display: block;
    font-weight: 500;
    color: var(--eddy-primary);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.eddy-input,
.eddy-select,
.eddy-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.eddy-input:focus,
.eddy-select:focus,
.eddy-textarea:focus {
    border-color: var(--eddy-blue);
}

.eddy-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Badge Styles */
.eddy-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.eddy-badge-primary {
    background: rgba(91, 134, 169, 0.1);
    color: var(--eddy-blue);
}

.eddy-badge-success {
    background: rgba(132, 145, 87, 0.1);
    color: var(--eddy-green);
}

.eddy-badge-warning {
    background: rgba(254, 164, 0, 0.1);
    color: var(--eddy-orange);
}

.eddy-badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.eddy-badge-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Table Styles */
.eddy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.eddy-table th,
.eddy-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.eddy-table th {
    background: var(--eddy-light-gray);
    font-weight: 600;
    color: var(--eddy-primary);
}

.eddy-table tbody tr:hover {
    background: rgba(91, 134, 169, 0.05);
}

/* Modal Styles */
.eddy-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.eddy-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.eddy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

.eddy-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--eddy-primary);
    margin: 0;
}

.eddy-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
}

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

.eddy-modal-body {
    padding: 16px;
}

.eddy-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
}

/* Alert Styles */
.eddy-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.eddy-alert-info {
    background: rgba(91, 134, 169, 0.1);
    border-color: rgba(91, 134, 169, 0.2);
    color: var(--eddy-blue);
}

.eddy-alert-success {
    background: rgba(132, 145, 87, 0.1);
    border-color: rgba(132, 145, 87, 0.2);
    color: var(--eddy-green);
}

.eddy-alert-warning {
    background: rgba(254, 164, 0, 0.1);
    border-color: rgba(254, 164, 0, 0.2);
    color: var(--eddy-orange);
}

.eddy-alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Utility Classes */
.eddy-text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

.eddy-text-center {
    text-align: center;
}

.eddy-mb-0 { margin-bottom: 0; }
.eddy-mb-1 { margin-bottom: 8px; }
.eddy-mb-2 { margin-bottom: 16px; }
.eddy-mb-3 { margin-bottom: 24px; }

.eddy-d-flex {
    display: flex;
}

.eddy-align-items-center {
    align-items: center;
}

.eddy-justify-between {
    justify-content: space-between;
}

.eddy-gap-2 {
    gap: 8px;
}

.eddy-gap-3 {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eddy-container {
        height: 100vh;
    }
    
    .eddy-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .eddy-logo {
        height: 60px;
    }
    
    .eddy-content {
        padding: 15px;
    }
    
    .eddy-modal {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
}