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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-nav {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background-color: #1b5e20;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

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

.btn-danger:hover {
    background-color: #c62828;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-card h1 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 32px;
}

.login-card h2 {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 400;
}

.login-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2e7d32;
}

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

.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h2 {
    font-size: 22px;
    color: #333;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

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

table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #555;
}

table tr:hover {
    background-color: #fafafa;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* AI Suggestion Box */
.ai-suggestion {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.ai-suggestion h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 16px;
}

.ai-confidence {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.ai-confidence.high {
    background: #4caf50;
    color: white;
}

.ai-confidence.medium {
    background: #ff9800;
    color: white;
}

.ai-confidence.low {
    background: #f44336;
    color: white;
}

/* Tee Table */
.tee-table {
    width: 100%;
}

.tee-table input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.tee-table select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.tee-table .btn-small {
    padding: 4px 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 13px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background-color: #1b5e20;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1000;
    overflow: hidden;
}

 .dropdown-menu::before {
     content: '';
     position: absolute;
     left: 0;
     right: 0;
     top: -8px;
     height: 8px;
 }

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Search Input */
.search-box {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #2e7d32;
}

/* Tag/Badge */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 13px;
    color: #334155;
    background: #f8fafc;
}

/* Note text */
.note {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
    }
    
    .table-actions {
        flex-direction: column;
    }
    
    .dropdown-menu {
        left: auto;
        right: 0;
    }
}
