/* Team Login Styles */
.team-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1e40af;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.team-login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.team-login-card h2 {
    color: #1e40af;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

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

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .dashicons {
    position: absolute;
    left: 15px;
    color: #6b7280;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #1e3a8a;
}

.login-error {
    color: #dc2626;
    background-color: #fee2e2;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Dashboard Styles */
.team-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-header h2 {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.tab-link {
    padding: 12px 24px;
    margin-right: 5px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab-link:hover {
    background: #e2e8f0;
    color: #334155;
}

.tab-link.active {
    background: #ffffff;
    color: #1e40af;
    border-color: #e2e8f0;
    border-bottom: 1px solid #ffffff;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

/* Client Form Styles */
.client-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.client-form-container h2 {
    margin-top: 0;
    color: #1e293b;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #334155;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 15px;
}

.form-group {
    flex: 1 0 calc(33.333% - 30px);
    margin: 0 15px 20px;
    min-width: 200px;
}

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

.form-group .required {
    color: #dc2626;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

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

/* File Upload Styles */
.logo-upload-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#upload-logo-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#upload-logo-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

#logo-file-name {
    color: #64748b;
    font-size: 13px;
}

/* Settlement Styles */
.settlement-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.settlement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.settlement-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
}

.remove-settlement {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.button-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.button-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.button-secondary:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

/* Notices */
.notice {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.notice-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.notice-warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* Error States */
.form-group.has-error .form-control {
    border-color: #ef4444;
}

.error-message {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 13px;
    font-style: italic;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .form-group {
        flex: 1 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .form-row {
        margin: 0 -10px 15px;
    }
    
    .form-group {
        flex: 1 0 100%;
        margin: 0 10px 15px;
    }
    
    .client-form-container {
        padding: 20px 15px;
    }
    
    .tab-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.logout-button {
    padding: 8px 16px;
    background-color: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #dc2626;
}

.welcome-message {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.welcome-message h3 {
    margin-top: 0;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-login-card {
        padding: 30px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
