/* Goal Tracker - Mobile-First Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gt-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Login Page Styles */
.gt-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.gt-login-wrapper {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gt-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.gt-form-section {
    display: none;
}

.gt-form-section.active {
    display: block;
}

.gt-form-group {
    margin-bottom: 20px;
}

.gt-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.gt-form-group input,
.gt-form-group textarea,
.gt-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.gt-form-group input:focus,
.gt-form-group textarea:focus,
.gt-form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.gt-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-bottom: 10px;
}

.gt-btn:active {
    transform: scale(0.98);
}

.gt-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.gt-btn-primary:hover {
    background-color: #45a049;
}

.gt-btn-secondary {
    background-color: #2196F3;
    color: white;
}

.gt-btn-secondary:hover {
    background-color: #0b7dda;
}

.gt-btn-danger {
    background-color: #f44336;
    color: white;
}

.gt-btn-danger:hover {
    background-color: #da190b;
}

.gt-switch-form {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.gt-switch-form a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.gt-switch-form a:hover {
    text-decoration: underline;
}

.gt-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.gt-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.gt-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Dashboard Styles */
.gt-dashboard-container {
    padding: 15px;
}

.gt-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gt-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.gt-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gt-goals-list {
    display: grid;
    gap: 15px;
}

.gt-goal-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gt-goal-card:active {
    transform: scale(0.98);
}

.gt-goal-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gt-goal-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.gt-goal-card p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.gt-goal-card .gt-goal-dates {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.gt-goal-card .gt-goal-type {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.gt-goal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.gt-goal-actions .gt-btn {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

/* Goal Detail View */
.gt-goal-detail {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gt-goal-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.gt-goal-detail-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.gt-goal-detail-header .gt-goal-timeline {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.gt-goal-detail-header .gt-goal-type {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gt-goal-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Semesters Section */
.gt-semesters-section {
    margin-top: 30px;
}

.gt-semesters-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gt-semester-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #4CAF50;
}

.gt-semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gt-semester-header h4 {
    color: #333;
    font-size: 18px;
}

.gt-semester-dates {
    color: #666;
    font-size: 12px;
}

.gt-classes-list {
    margin-top: 15px;
}

.gt-class-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #2196F3;
}

.gt-class-item h5 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.gt-class-item p {
    color: #666;
    font-size: 14px;
}

.gt-add-semester-btn,
.gt-add-class-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
}

.gt-delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.gt-delete-btn:hover {
    background-color: #da190b;
}

/* Modal Styles */
.gt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.gt-modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.gt-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.gt-modal-close:hover {
    color: #333;
}

.gt-modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.gt-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gt-form-actions .gt-btn {
    flex: 1;
    margin-bottom: 0;
}

/* Back Button */
.gt-back-btn {
    background-color: #999;
    color: white;
    margin-bottom: 15px;
}

.gt-back-btn:hover {
    background-color: #777;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .gt-container {
        max-width: 1200px;
        padding: 30px;
    }
    
    .gt-header-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .gt-header-actions .gt-btn {
        width: auto;
        min-width: 120px;
    }
    
    .gt-goals-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gt-modal-content {
        margin: 50px auto;
    }
}

@media (min-width: 1024px) {
    .gt-goals-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

