* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, sans-serif;

    background: #eef1f5;

    display: flex;
    justify-content: center;
    align-items: center;
}

.phone {
    width: 420px;
    max-width: 95vw;

    background: white;

    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0,0,0,.15);

    overflow: hidden;
}

.topbar {
    background: #087f5b;

    color: white;

    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar strong {
    font-size: 20px;
}

.topbar span {
    font-size: 13px;
}

.user {
    display: flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 9px;
    height: 9px;

    background: #35d07f;

    border-radius: 50%;
}

main {
    padding: 22px;
}

.display input {
    width: 100%;

    padding: 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 25px;

    text-align: center;

    outline: none;
}

.display {
    margin-bottom: 18px;
}

.keypad {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.keypad button {
    height: 65px;

    border: 1px solid #ddd;

    border-radius: 9px;

    background: #f8f9fa;

    font-size: 25px;

    cursor: pointer;
}

.keypad button:hover {
    background: #e9ecef;
}

.keypad span {
    display: block;

    font-size: 9px;

    color: #777;

    margin-top: 2px;
}

.actions {
    display: grid;

    grid-template-columns: 1fr 1.5fr 1fr;

    gap: 10px;

    margin-top: 18px;
}

.actions button {
    padding: 13px;

    border: 0;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;
}

.call {
    background: #168a4a;

    color: white;

    font-weight: bold;
}

.secondary {
    background: #e9ecef;
}

.history {
    margin-top: 25px;

    border-top: 1px solid #eee;

    padding-top: 18px;
}

.section-title {
    font-weight: bold;

    margin-bottom: 12px;
}

.history-item {
    padding: 12px 0;

    border-bottom: 1px solid #eee;

    display: flex;

    justify-content: space-between;
}

.history-item small {
    display: block;

    color: #777;

    margin-top: 4px;
}

.history-item span {
    color: #777;

    font-size: 13px;
}
