/* Global Styles */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

/* Header */
.header {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    flex-grow: 1;
}

/* Main Content */
.smart-container {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    margin: 2rem auto;
}

.section-card {
    background: white;
    padding: 2rem;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    color: #2ecc71;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* SMART Intro */
.smart-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.smart-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.smart-letter {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background-color: #2ecc71;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.smart-meaning {
    flex-grow: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.smart-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.criteria-item textarea {
    min-height: 100px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary, .btn-success {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

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

.btn-success {
    background-color: #2ecc71;
    color: white;
}

/* Goal List */
.goal-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.goal-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s;
    cursor: grab;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-card.dragging {
    opacity: 0.5;
}

.goal-card.status-done { border-left-color: #2ecc71; }
.goal-card.status-in-progress { border-left-color: #f39c12; }
.goal-card.status-todo { border-left-color: #e74c3c; }

.goal-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
    text-align: left;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.goal-card p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.goal-card .smart-info strong {
    color: #2ecc71;
    margin-right: 5px;
}

.goal-card .goal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.goal-card .goal-actions .fas, .goal-card .goal-actions .far {
    cursor: pointer;
    font-size: 1.1rem;
    color: #777;
    transition: color 0.2s;
}

.goal-card .goal-actions .fa-check-circle:hover { color: #2ecc71; }
.goal-card .goal-actions .fa-clock:hover { color: #f39c12; }
.goal-card .goal-actions .fa-trash-alt:hover { color: #e74c3c; }

.goal-card .goal-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    background-color: #ccc;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
}

.goal-card .goal-status.status-done { background-color: #2ecc71; }
.goal-card .goal-status.status-in-progress { background-color: #f39c12; }
.goal-card .goal-status.status-todo { background-color: #e74c3c; }

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-container {
        padding: 1rem;
    }
    .header-title {
        font-size: 1rem;
    }
    .smart-intro {
        flex-direction: column;
    }
    .smart-item {
        margin-bottom: 15px;
    }
    .goal-list-grid {
        grid-template-columns: 1fr;
    }
}