:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #ff7675;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease;
    animation: fadeIn 0.8s ease-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    opacity: 0.8;
    font-size: 14px;
}

.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-color);
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--light-color);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.input-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

input:focus + .input-animation {
    width: 100%;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover {
    background: #5d4de6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.calculate-btn:active {
    transform: translateY(1px);
}

.calculate-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.calculate-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.banner {
    padding: 0 30px 30px;
    text-align: center;
    color: var(--dark-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    animation: scaleIn 0.3s forwards;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--dark-color);
}

.result-text {
    margin: 20px 0;
    line-height: 1.6;
    color: var(--dark-color);
    font-size: 16px;
    text-align: center;
}

.attendance-visual {
    margin-top: 30px;
}

.progress-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    height: 10px;
    background-color: #e1e1e1;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-text {
    font-weight: 600;
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Responsive Styles */
@media (max-width: 600px) {
    .header {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
}
.p1{
  color: #000;
  font-weight: bold ;
  text-size: 100px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  text-align: center;
  backdrop-filter: blur(6px);
}

/* Footer Styles */
.footer {
    width: 100%;
    padding: 1px;
    padding-top: 0px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    text-align: center;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: white;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.github:hover {
    background: #333;
    color: white;
}

.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 600px) {
    .header {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }

    .footer {
        padding: 15px;
        bottom: 10px;
    }
}
