:root {
    --primary-gradient: linear-gradient(135deg, #FF00CC 0%, #333399 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --accent-color: #00e5ff;
    /* More vibrant cyan */
    --calc-btn-dark: #333333;
    --calc-btn-ops: #FF9F0A;
    --calc-btn-gray: #A5A5A5;
    --neu-light: rgba(255, 255, 255, 0.1);
    --neu-dark: rgba(0, 0, 0, 0.2);
    --vibrant-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
    /* Make it feel like an app */
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

/* --- iPhone Frame --- */
.iphone-wrapper {
    position: relative;
    width: 390px;
    height: 844px;
    background: #000;
    border-radius: 50px;
    box-shadow: 0 0 0 12px #333, 0 0 0 14px #1a1a1a, 0 50px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.iphone-frame {
    height: 100%;
    width: 100%;
    position: relative;
    background: var(--primary-gradient);
    border-radius: 40px;
    /* Screen radius */
    overflow: hidden;
    color: white;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hardware Buttons */
.button {
    position: absolute;
    background: #222;
    border-radius: 2px;
}

.mute {
    top: 100px;
    left: -16px;
    width: 4px;
    height: 26px;
}

.vol-up {
    top: 150px;
    left: -16px;
    width: 4px;
    height: 50px;
}

.vol-down {
    top: 215px;
    left: -16px;
    width: 4px;
    height: 50px;
}

.power {
    top: 160px;
    right: -16px;
    width: 4px;
    height: 80px;
}

/* Status Bar & Dynamic Island */
.status-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding: 14px 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
}

.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.camera {
    width: 12px;
    height: 12px;
    background: #1a1b1d;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.status-icons i {
    margin-left: 5px;
    font-size: 12px;
}

/* Header Logo */
.app-header {
    margin-top: 60px;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 100%;
    max-width: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    mix-blend-mode: screen;
}

/* Main Content Area */
.content-area {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
    /* Standard padding */
    scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
    display: none;
}

.app-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.app-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Glass Card Style */
.card {
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Calculator Styles --- */
.calculator-ui {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.calc-display {
    font-size: 64px;
    text-align: right;
    margin-bottom: 20px;
    font-weight: 300;
    padding-right: 10px;
    word-break: break-all;
}

.calc-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.calc-keypad button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: filter 0.2s;
}

.calc-keypad button:active {
    filter: brightness(1.3);
}

.btn-dark {
    background: var(--calc-btn-dark);
}

.btn-gray {
    background: var(--calc-btn-gray);
    color: black !important;
}

.btn-orange {
    background: var(--calc-btn-ops);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.span-2 {
    grid-column: span 2;
    width: 100% !important;
    border-radius: 35px !important;
    text-align: left;
    padding-left: 25px;
}


/* --- Calendar Styles --- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 20px;
    cursor: pointer;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}

.days div {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.days div.today {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

.days div:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Value-Added Reminder Styles --- */
.add-reminder-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 20px;
    box-shadow: inset 2px 2px 5px var(--neu-dark), inset -2px -2px 5px var(--neu-light);
}

.input-group {
    width: 100%;
}

.neu-inset {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 14px;
    box-shadow: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light);
    transition: all 0.3s ease;
}

.neu-inset:focus {
    outline: none;
    box-shadow: inset 1px 1px 2px var(--neu-dark), inset -1px -1px 2px var(--neu-light), 0 0 5px var(--accent-color);
}

.add-btn-neu {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 4px 4px 10px var(--neu-dark), -4px -4px 10px var(--neu-light);
    transition: transform 0.1s;
}

.add-btn-neu:active {
    transform: scale(0.98);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reminder-item {
    background: var(--vibrant-card-bg);
    border-radius: 20px;
    padding: 15px;
    position: relative;
    /* For abstract shapes if needed */
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.4s ease-out;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 5px;
}

.rem-subject {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rem-deadline {
    font-size: 12px;
    color: #ffcc00;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
}

.rem-task {
    font-size: 14px;
    color: #eee;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.rem-resources {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rem-resources i {
    color: var(--accent-color);
}

.rem-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.action-btn:hover {
    opacity: 1;
}

.btn-check {
    color: #00ff88;
}

.btn-delete {
    color: #ff453a;
}

.reminder-item.completed {
    opacity: 0.6;
    filter: grayscale(0.8);
}

/* --- Dock Navigation (Top) --- */
.dock {
    position: relative;
    /* In flow */
    bottom: auto;
    left: auto;
    right: auto;
    margin: 10px 20px;
    /* Add margin around it */
    height: 60px;
    /* Slightly smaller */
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Full border */
    z-index: 1000;
    flex-shrink: 0;
    /* Don't shrink */
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    flex: 1;
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--accent-color);
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: white;
    border-radius: 10px;
    opacity: 0.8;
    z-index: 1001;
}