/* Study Time Calculator Styles */
.study-time-calculator-container {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234caf50' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.calculator-bg-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.calculator-bg-shape:before {
    content: '';
    position: absolute;
    top: 150px;
    left: -250px;
    width: 350px;
    height: 350px;
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 50%;
}

.calculator-bg-shape:after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 100px;
    width: 250px;
    height: 250px;
    background-color: rgba(156, 39, 176, 0.05);
    border-radius: 50%;
}

.study-time-calculator-header {
    text-align: center;
    margin-bottom: 40px;
    background-color: #4CAF50;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: white;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
}

.header-icon {
    margin-bottom: 15px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-icon svg {
    display: block;
    color: white;
}

.study-time-calculator-header .page-title {
    font-size: 38px;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.study-time-calculator-header .page-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.study-time-calculator-tool {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .study-time-calculator-tool {
        grid-template-columns: 1fr;
    }
}

.calculator-form, .study-schedule {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #4CAF50;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.calculator-form:hover, .study-schedule:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.calculator-form h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    position: relative;
}

.calculator-form h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4CAF50;
}

.calculator-form h3 {
    margin: 20px 0 15px;
    color: #444;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

.subject-entry {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subject-entry:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subject-entry .remove-subject {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.subject-entry .remove-subject:hover {
    background-color: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

.btn-primary:hover {
    background-color: #45a049;
    box-shadow: 0 6px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 6px rgba(96, 125, 139, 0.2);
}

.btn-secondary:hover {
    background-color: #546E7A;
    box-shadow: 0 6px 8px rgba(96, 125, 139, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.2);
}

.btn-success:hover {
    background-color: #0b7dda;
    box-shadow: 0 6px 8px rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 6px rgba(156, 39, 176, 0.2);
}

.btn-info:hover {
    background-color: #7B1FA2;
    box-shadow: 0 6px 8px rgba(156, 39, 176, 0.3);
    transform: translateY(-2px);
}

.study-schedule {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #2196F3;
}

.study-schedule h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    position: relative;
}

.study-schedule h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #2196F3;
}

.schedule-placeholder {
    text-align: center;
    padding: 40px 30px;
    color: #777;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.schedule-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Study Schedule Results */
.study-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.study-schedule-table th {
    background-color: #2196F3;
    text-align: left;
    padding: 15px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.study-schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.study-schedule-table tr:last-child td {
    border-bottom: none;
}

.study-schedule-table tr:hover {
    background-color: #f5f5f5;
}

.subject-time-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.time-bar {
    height: 12px;
    background-color: #E3F2FD;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
}

.time-fill {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.5s ease-in-out;
}

.difficulty-easy {
    color: #4CAF50;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.difficulty-medium {
    color: #FF9800;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
}

.difficulty-hard {
    color: #F44336;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
}

.size-small {
    color: #4CAF50;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.size-medium {
    color: #FF9800;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
}

.size-large {
    color: #F44336;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
}

.total-time-summary {
    margin-top: 25px;
    padding: 18px;
    background-color: #E8F5E9;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

/* Saved Schedules */
.saved-schedules {
    margin-top: 35px;
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
}

.saved-schedules h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.saved-schedule-item {
    background-color: white;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.saved-schedule-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.saved-schedule-name {
    font-weight: 600;
    color: #333;
}

.saved-schedule-actions {
    display: flex;
    gap: 10px;
}

.saved-schedule-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.saved-schedule-actions .btn-load {
    background-color: #2196F3;
    color: white;
}

.saved-schedule-actions .btn-load:hover {
    background-color: #0b7dda;
}

.saved-schedule-actions .btn-delete {
    background-color: #F44336;
    color: white;
}

.saved-schedule-actions .btn-delete:hover {
    background-color: #d32f2f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .study-time-calculator-header {
        padding: 20px 15px;
    }
    
    .study-time-calculator-header .page-title {
        font-size: 28px;
    }
    
    .study-time-calculator-header .page-description {
        font-size: 16px;
    }
    
    .calculator-form,
    .study-schedule {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .schedule-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Add gradients and animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add a decorative line to separate form sections */
#subjects-container:before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.5), rgba(76, 175, 80, 0.1));
    margin: 15px 0;
}

/* Add a little icon to indicate draggable handles */
.subject-entry:before {
    content: '≡';
    position: absolute;
    left: 5px;
    top: 15px;
    font-size: 18px;
    color: #bbb;
    cursor: grab;
}

/* Calculation animation */
.calculation-animation {
    text-align: center;
    padding: 40px 20px;
    color: #333;
}

.calculation-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.calculation-animation p {
    font-size: 16px;
    color: #555;
}

/* Success animation for calculation */
.study-schedule-table.calculated {
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Improve form layout for better readability */
.subject-entry {
    padding-left: 30px;
}

/* A little enhancement to visually separate the two main sections */
.study-schedule {
    border-top: 5px solid #2196F3;
}

/* Enhance the placeholder message */
.schedule-placeholder {
    position: relative;
    background-image: linear-gradient(45deg, #f9f9f9 25%, #f3f3f3 25%, #f3f3f3 50%, #f9f9f9 50%, #f9f9f9 75%, #f3f3f3 75%, #f3f3f3 100%);
    background-size: 10px 10px;
}

.schedule-placeholder:before {
    content: '📊';
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

/* Instructions Section Styles */
.study-time-calculator-instructions {
    padding: 30px 25px;
    background-color: #f7f9fc;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.instructions-title {
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.instructions-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
    margin: 12px auto 0;
}

.instructions-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.instructions-content > p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step {
    background-color: white;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: #4CAF50;
    font-size: 17px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}

.step h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4CAF50;
}

.step p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Styles for Instructions */
@media (max-width: 768px) {
    .study-time-calculator-instructions {
        padding: 25px 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .instructions-title {
        font-size: 22px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        padding: 15px 12px;
    }
    
    .step h3 {
        font-size: 16px;
    }
    
    .step p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .study-time-calculator-instructions {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .study-time-calculator-instructions {
        padding: 20px 12px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 6px;
    }
    
    .instructions-title {
        font-size: 20px;
    }
    
    .instructions-content > p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .step {
        padding: 12px 10px;
    }
} 